package com.yungu.swift.order.helper.chain;

import com.yungu.swift.order.helper.model.AssignScoreParam;

import java.util.List;

/**
 * 责任链模式 —— 派单司机分数计算
 *
 * @author : cuixiuyin
 * @date : 2019/7/8
 */
public abstract class AssignScoreHandler {

    protected AssignScoreHandler nextHandler;


    public void setNextHandler(AssignScoreHandler assignScoreHandler) {
        this.nextHandler = assignScoreHandler;
    }

    /**
     * @param scoreParams 司机分数列表
     */
    public abstract void calculation(List<AssignScoreParam> scoreParams);
}
